import SvgIcon from './SvgIcon/index.vue';
import Category from './Category/index.vue';
import * as ElementPlusIconsVue from '@element-plus/icons-vue';
// 全局注册组件
const allGlobalComponents = {
    SvgIcon,
    Category,
};
export default {
    install(app) {
        Object.keys(allGlobalComponents).forEach((key) => {
            console.log(key);
            app.component(key, allGlobalComponents[key]);
        });

        // 注册 element-plus 的图标
        for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
            app.component(key, component);
        }
    },
};
